System and method for sequential kernel density approximation through mode propagation

ABSTRACT

A system and method for sequential kernel density approximation uses mode propagation to determine mode locations by the mean-shift method and reduce the generated modes. Hessians are calculated corresponding to the mode locations to determine the covariance. Density is approximated to update the density function depending on whether the Hessian is a negative indefinite.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the benefit of U.S. Provisional Application No. 60/501,546 filed on Sep. 9, 2003, titled as “Sequential Kernel Density Approximation through Mode Propagation: Applications to Background Modeling”, contents of which are incorporated herein by reference.

TECHNICAL FIELD

This invention relates to statistical signal processing and more particularly to density approximation and mode propagation in signal processing applications.

DISCUSSION OF THE RELATED ART

It is very difficult to process signal in a raw form, because of problems of noises or missing data. Hence, researchers have developed mathematical and statistical techniques for an efficient management of signals. Probability density function is one of the most important tools to model the signal, and density based modeling, such as non-parametric techniques or mixture of Gaussians, and is now also widely used in computer vision area.

The details of density based modeling for visual features in an exemplary application area of computer vision are described next. Visual features such as intensity, color, gradient, texture or motion are commonly modeled using density estimation. The underlying probability density of the feature can be described using a parametric (e.g., one Gaussian), semi-parametric (mixture of Gaussians) or non-parametric (e.g., histogram or kernel density-based) representation. These representations create a trade-off between the flexibility of the model and its data summarization property. Non-parametric models, for example, can be very flexible and hence accommodate complex densities, but require large amounts of memory for the implementation.

Parametric and semi-parametric representation can be implemented in various methods in image processing applications. Underlying models for image processing applications can range from a Gaussian described by variable mean and covariance in a color space to a mixture of fixed number of Gaussians where density is updated using online K-means approximation.

A competitive alternative to the mixture model is a non-parametric representation, where kernel density estimation is invoked to estimate the probability density function. Non-parametric techniques give more flexibility in representing variations, but such techniques require a huge amount of extra memory because all the observations have to be recorded. Even more memory is required if the feature space is high dimensional. Hence, some memory-efficient density estimation technique is required.

A number of real-time computer vision tasks such as background modeling or modeling the appearance of a moving target require sequential density estimation, where new data is incorporated in a model as it becomes available. However, conventional methods for updating the density function either lack flexibility because they fix the number of Gaussians in the mixture, or require large amounts of memory by maintaining a non-parametric representation of the density.

SUMMARY

The modes of a density function represent regions with a higher local probability, and hence the preservation of modes is important to maintain a low density approximation error. In this method, kernel density approximation is utilized, where the density mode is detected and each mode is simulated by the Gaussian kernel.

A Gaussian mixture approximates the original density function by finding mode locations and estimating the curvature around each mode. For each mode, a Gaussian component is created, whose mean is given by the mode location. The covariance of each component is derived from a Hessian matrix estimated at the mode location. Variable-bandwidth mean shift is used to detect the modes. While the density representation is memory efficient (which is typical for mixture densities), it inherits the flexibility of non-parametric techniques, by allowing the number of modes to be adaptive. Therefore, density is represented as a weighted sum of Gaussians, whose number, weights, means and covariances are determined automatically at each time step, to include the new data into the model.

A technique for recursive density approximation that relies on the propagation of the density modes is also provided. Beginning from the previous modes, a new observation is considered at each time step, and the variable-bandwidth mean shift is used to detect the new modes. At each time step, the mean and the covariance for each mode is determined as explained above. Density based representations through mode propagation require lesser memory, similar to the techniques that use mixture densities, while modes are created and deleted in the more principled manner. The same mode detection and propagation techniques are applied to subspaces derived from eigen analysis.

BRIEF DESCRIPTION OF DRAWINGS

Preferred embodiments of the invention are described with reference to the accompanying drawings, of which:

FIG. 1 is a flowchart showing density approximation in an embodiment of the present invention;

FIGS. 2(a)-2(h) are one dimensional mode propagation simulation graphs generated during the operation of an embodiment of the present invention;

FIGS. 3(a)-(h) show an exemplary two dimensional mode propagation;

FIGS. 4(a)-4(d) shows mode propagation in a two dimensional subspace;

FIG. 5 is a flowchart for an illustrative background modeling application in an embodiment of the present invention;

FIG. 6 is a block diagram of an exemplary system for sequential kernel density estimation through mode propagation in an embodiment of the present invention; and

FIG. 7 is a block diagram of a computer system used to implement the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The preferred embodiments of the present invention will be described with reference to the appended drawings.

FIG. 1 is a flowchart showing density approximation in an embodiment of the present invention. The flowchart depicts the steps of a system 10 that performs density approximation. At step 12 an iterative process in the form of a loop for all kernels is initiated where the kernels are numbered from 1 to n. For each kernel a mean shift vector m(x_(i)) is computed using the inputs of weights, means and covariances. The computed mean shift vector is checked at step 16 for the condition that the norm of the mean shift vector x_(i) is less than delta, which is a small number indicating that the size of mean-shift vector is almost zero. If the condition is not satisfied, mean shift vector is computed again at new location xi, and this procedure is repeated until the condition is met. The iteration repeats if the counter i is less than or equal to the total number of kernels.

After all the kernels are processed, the process jumps to mode reduction at step 22. The number of modes are reduced, and the weights w_(i) and the convergences at mode x_(i) are determined. By iteratively computing the mean shift vectors and translating the location x by m(x), a mode seeking algorithm is obtained that that makes the data points converge to a stationary point of the density. Hessians Q(x_(i)) are computed for each mode x_(i) at step 24 and covariance H(x_(i)) for each mode is decided based on the Hessians. Finally, densities are approximated using mode locations x_(i) the weights, and Hessians H(x_(i)) at step 28. The steps performed during operation of the system 10 are described in further detail below.

An illustration of the kernel density approximation with adaptive bandwidth and an iterative procedure for mode detection based on the variable-bandwidth mean shift is described next. In the illustration x_(i), i=1 . . . n is a set of d—dimensional points in the space R^(d) and a symmetric positive is assumed to have a definite d×d bandwidth H_(i) is associated with each data point x_(i). The sample point density estimator with d—variate normal kernel, computed at the point x is given by the equation: $\begin{matrix} {{{\hat{f}(x)} = {\frac{1}{n}\frac{1}{\left( {2\pi} \right)^{d/2}}{\sum\limits_{i = 1}^{n}\quad{\frac{1}{{H_{i}}^{1/2}}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}}}}}{{where},}} & (1) \\ {{D^{2}\left( {x,x_{i},H_{i}} \right)} \equiv {\left( {x - x_{i}} \right)^{T}{H_{i}^{- 1}\left( {x - x_{i}} \right)}}} & (2) \end{matrix}$ is the Mahalanobis distance from x to x_(i). It is clear that the density at x is obtained as the average of Gaussian densities centered at each data point x_(i) and having the covariance H_(i). $\begin{matrix} {{{m(x)} = {{{{H_{h}(x)}{\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}x_{i}}}} - x}\quad = {{\left( {\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}}} \right)^{- 1}\left( {\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}x_{i}}} \right)} - x}}}{{where},}} & (3) \\ {{H_{h}^{- 1}(x)} = {\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}}}} & (4) \end{matrix}$ and the weights: $\begin{matrix} {{w_{i}(x)} = \frac{{H_{i}}^{{- 1}/2}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}}{\sum\limits_{i = 1}^{n}\quad{\kappa_{i}{H_{i}}^{{- 1}/2}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}}}} & (5) \end{matrix}$ satisfy the equation, ${\sum\limits_{i = 1}^{n}\quad{w_{i}(x)}} = 1$

By iteratively computing the mean shift and translating the location x by m(x), a mode seeking algorithm is obtained, which converges to a stationary point of the density given by the equation (1). Since the maxima of the density are the only stable points of the iterative procedure, most of the time the convergence happens at a mode of the underlying density. A formal check for the maximum involves the computation of the Hessian matrix: $\begin{matrix} {{{\hat{Q}(x)} \equiv {\left( {\nabla\nabla^{T}} \right){\hat{f}(x)}}} = {\frac{1}{n}\frac{1}{\left( {2\pi} \right)^{d/2}}{\sum\limits_{i = 1}^{n}\quad{\frac{1}{{H_{i}}^{1/2}}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}{H_{i}^{- 1}\left( {{\left( {x_{i} - x} \right)\left( {x_{i} - x} \right)^{T}} - H_{i}} \right)}H_{i}^{- 1}}}}} & (6) \end{matrix}$ which should be negative definite (i.e., having all eigen values negative) at the mode location.

Each Gaussian receives a weight u_(i) with ${\sum\limits_{i = 1}^{n}\quad u_{i}} = 1.$ The density (1) becomes: $\begin{matrix} {{\hat{f}(x)} = {\frac{1}{\left( {2\pi} \right)^{d/2}}{\sum\limits_{i = 1}^{n}\quad{\frac{u_{i}}{{H_{i}}^{1/2}}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}}}}} & (7) \end{matrix}$ which represents a mixture of Gaussian components. All the equations from above remain the same except for those defining the weights w_(i) $\begin{matrix} {{w_{i}(x)} = \frac{u_{i}{H_{i}}^{{- 1}/2}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}}{\sum\limits_{i = 1}^{n}\quad{\kappa_{i}{H_{i}}^{{- 1}/2}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}}}} & (8) \end{matrix}$ and the Hessian {circumflex over (Q)}(x) $\begin{matrix} {{{\hat{Q}(x)} \equiv {\left( {\nabla\nabla^{T}} \right){\hat{f}(x)}}} = {\frac{1}{\left( {2\pi} \right)^{d/2}}{\sum\limits_{i = 1}^{n}\quad{\frac{u_{i}}{{H_{i}}^{1/2}}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}{H_{i}^{- 1}\left( {{\left( {x_{i} - x} \right)\left( {x_{i} - x} \right)^{T}} - H_{i}} \right)}H_{i}^{- 1}}}}} & (9) \end{matrix}$

This framework is used to propagate modes for sequential density approximation as described next. Recursive density approximation relies on the propagation of the density. At each time step, the modes of the density are re-estimated and a Gaussian component is assigned to each mode. A single Gaussian component can be assigned to a single mode, hence reducing the amount of memory required to represent the modes and the density function. The covariance of each component is derived from a Hessian matrix estimated at the mode location. Covariance is estimated accurately by using the Hessian at the mode location.

Variable-bandwidth mean shift is used to detect the modes. While the density representation is memory efficient, it inherits the flexibility of non-parametric techniques, by allowing the number of modes to adapt in time. The same mode propagation principle applies to subspaces derived from eigen analysis.

At a given time t the underlying density has nt modes (maxima) and that for each mode we have allocated a Gaussian N (u_(i), x_(i), H_(i)), according to equation (7). To illustrate, a learning rate is taken to be α and all incoming data is to be part of the model. Let N (u_(t), x_(t), H_(t)) be a new measurement. With the integration of the new measurement the density at time t is expressed as: $\begin{matrix} {{{\hat{f}}_{t}(x)} = {{\frac{\alpha}{\left( {2\pi} \right)^{d/2}{H_{i}}^{1/2}}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{t},H_{t}} \right)}} \right)}} + {\frac{1 - \alpha}{\left( {2\pi} \right)^{d/2}}{\sum\limits_{i = 1}^{n_{t}}\quad{\frac{u_{i}}{{H_{i}}^{1/2}}{\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right)}}}}}} & (10) \end{matrix}$

Starting from the locations x_(t) and x_(i) with i=1 . . . n_(t) mean shift iterations are performed, and it is assumed that convergence locations are x_(t) ^(c) and x_(i) ^(c) where i=1 . . . . n_(t). Select first, the convergence location at which more than one procedure converged. Let y be a point in this set and x_(i) _(—) _(j), j=1 . . . m be the starting locations for which the mean shift procedure converged to y. If the Hessian {circumflex over (Q)}_(t)(y)=(∇∇^(T)){circumflex over (f)}_(t(y)) is negative definite, the mode y is associated with a Gaussian component defined by N(u_(y), y, H(y)) where the weight is: $\begin{matrix} {u_{y} = {\sum\limits_{j = 1}^{m}\quad u_{i_{j}}}} & (11) \end{matrix}$ and the covariance is defined by: $\begin{matrix} {{H(y)} = {u_{y}^{\frac{2}{d + 2}}{{2{\pi\left( {- {{\hat{Q}}_{t}(y)}} \right)}^{- 1}}}^{- \frac{1}{d + 2}}\left( {- {{\hat{Q}}_{t}(y)}^{- 1}} \right)}} & (12) \end{matrix}$

At time t+1 the Gaussian components located at x_(i) _(—) _(j), j=1 . . . m will be substituted by the new Gaussian N(u_(y), y, H(y)).

If the Hessian {circumflex over (Q)}_(t)(y) is not negative definite (i.e., the location y is either a saddle point or a local minimum), all the components associated with x_(ij), j=1 . . . m are left unchanged since the Gaussian approximation in the neighborhood y would yield a too high error.

For convergence locations at which only one procedure converged, the weight, mean and covariance of the associated Gaussian component (as given in the Equation (10)) are also left unchanged.

FIGS. 2(a) to 2(h) are simulation graphs generated during the operation of an embodiment of the present invention. Equation (10) represents the density function {circumflex over (f)}_(t(x)) and is used to derive {circumflex over (f)}_(t+1(x)). The number of Gaussians, n_(t+i) can increase or decrease with respect to nt, as a function of the increase or decrease in the complexity of the underlying density at the time t+1, as represented by the number of modes.

FIGS. 2(a) to 2(h) illustrate the application of mode propagation framework in one dimension. Measurements range about 500 and learning rate of about α=0.05 is used for measurements.

FIGS. 2(a) to 2(h) show both the standard non-parametric estimate of the density and the density computed using mode propagation. Steps 0, 60, 120, 180, 240 and 300 are shown on the X-axis. FIG. 2(a)-(f) show standard non-parametric density estimation. FIG. 2(g) shows the mean integrated square error; and FIG. 2(h) shows the number of modes.

FIGS. 3(a)-(h) show two dimensional mode propagation. FIG. 3(a) and 3(c) show standard non-parametric density estimation. FIG. 3(b) and (d) show density computed through mode propagation. Steps 0 and 60 are represented. FIG. 3(e) shows mean integrated squared error. FIG. 3(f) shows the number of modes.

Close relationship between the standard kernel density estimation and the density computed through mode propagation is observed, and density function has been approximated with only ten modes at the 60^(th) step. The amount of memory required to represent this density function non-parametrically is much higher than in the case of mode propagation.

Mode propagation can be extended to subspaces obtained from eigen analysis, while eigenspace updating is implemented though incremental PCA. Multiple p dimensional data are denoted by m_(i), i=1, 2, . . . , k, having mean and covariance m and P. Matrix of eigen-vectors of P is denoted by E. The largest q eigenvalues and corresponding eigenvectors e_(i), i=1,2, . . . , q, are selected and hence the original p dimensional space is reduced to q dimensions where q<p.

E_(q) is defined to be a p×q matrix whose columns are eigen vectors and project the data from the original space into the q dimensional subspace by the simple matrix-vector multiplication as m_(i) ^(q)=E_(q) ^(T)m_(i). Using the projected data m_(i) ^(q), the mode finding algorithm is performed in same manner as described above in detail. Using the Hessian computed at the mode location, the covariance of each mode is derived in the subspace for which the mean {circumflex over (m)}_(i)(i=1,2, . . . , n) of each mode in the original space is required.

Incremental Principal Component Analysis (PCA) is described next. As the requisite amount of information is not available, the data representation in the current subspace has to be converted into the next subspace. The information available includes an old eigenvector (E_(q)), new eigenvector (E′_(q)), mean and covariance for the density in the old subspace, new data m_(k+1) and mean of each mode {circumflex over (m)}_(i) in the original space. Instead of projecting each mode from the old subspace to the new subspace, the mean of each mode {circumflex over (m)}_(i) is projected into the new subspace as: m′_(i) ^(q)=E′_(q) ^(T){circumflex over (m)}_(i)  (13) and the new data can be projected to the new subspace as below: m′_(k+1) ^(q)=E′₄ ^(T){circumflex over (m)}_(k+1)  (14)

With the means and covariances of the re-projected density and the new data, the sequential density approximation algorithm is performed and the modes are propagated to the next step. At this time, the mean of each mode {circumflex over (m)}_(i) is updated according to the result of mode finding procedure and the learning rate

FIGS. 4(a)-4(d) shows mode propagation in a two dimensional subspace. FIGS. 4(a) and 4(c) show standard non-parametric density estimation. FIGS. 4(b) and (d) show density computed through mode propagation. Steps 0 and 50 are represented.

Based on the kernel density approximation explained above, background modeling and subtraction is performed. FIG. 5 is a flowchart for an illustrative background modeling application 30 in an embodiment of the present invention. At step 32 the received image sequence is processed to approximate density for each pixel to determine the background of the received image. A background model having mixtures of several Gaussians is constructed using the above described techniques. The received image is processed pixel-wise or as blocks of fixed size. At step 34 a background model is created and at step 36 background subtraction is performed to separate the background image from the foreground image.

The subtracted background is further checked at step 38 for valid classification as background. If the subtracted background image is validly classified as background then at step 40 then the background is updated by sequential density approximation after which the process iterates back to step 36 for background subtraction. The density of the probability density function describing the background model is updated only if the new frame data is classified as background. A unit of the image is considered foreground if the feature of the unit is far (e.g., outside 99.9 percent confidence ellipsoid) from every mode in the underlying density function. Only after verifying that the new data is verified to be background related data, the background model is updated using the sequential density approximation as described above in detail. The whole process for background modeling iterates till new frames are received and the process ends when there are no more new frames to be processed.

In many real-time applications, the data is not available before the processing of information is initiated. Hence, the density function used to model the data captured in real-time has to be updated in an online manner. Hence, when new data (Gaussian) is added to the current density function, mode finding is performed and density can be properly approximated with minimal amount of memory required at each step in the process.

FIG. 6 is a block diagram of an exemplary system for sequential kernel density estimation through mode propagation in an embodiment of the present invention. The blocks in FIG. 6 are computational modules that can be implemented in a software or hardware system as described below in detail. In the system 42, a module 44 generates mean-shift vectors that processed to reduce modes by the module 46 as described above. Module 48 computes Hessians and module 50 generates covariance for all data points. Module 52 approximates densities. The detailed operation of the above modules is described above in context of FIG. 1.

Referring to FIG. 7, according to an embodiment of the present invention, a computer system 101 for implementing the present invention can comprise, inter alia, a central processing unit (CPU) 102, a memory 103 and an input/output (I/O) interface 104. The computer system 101 is generally coupled through the I/O interface 104 to a display 105 and various input devices 106 such as a mouse and keyboard. The support circuits can include circuits such as cache, power supplies, clock circuits, and a communications bus. The memory 103 can include random access memory (RAM), read only memory (ROM), disk drive, tape drive, etc., or a combination thereof. The present invention can be implemented as a routine 107 that is stored in memory 103 and executed by the CPU 102 to process the signal from the signal source 108. As such, the computer system 101 is a general purpose computer system that becomes a specific purpose computer system when executing the routine 107 of the present invention.

The computer platform 101 also includes an operating system and micro instruction code. The various processes and functions described herein may either be part of the micro instruction code or part of the application program (or a combination thereof) which is executed via the operating system. In addition, various other peripheral devices may be connected to the computer platform such as an additional data storage device and a printing device.

It is to be further understood that, because some of the constituent system components and method steps depicted in the accompanying figures may be implemented in software, the actual connections between the system components (or the process steps) may differ depending upon the manner in which the present invention is programmed. Given the teachings of the present invention provided herein, one of ordinary skill in the related art will be able to contemplate these and similar implementations or configurations of the present invention.

While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the appended claims. 

1. A system for sequential kernel density approximation, the system comprising: a mean-shift vector module for finding a gradient ascent direction in the density function; a Hessian module for generating at least one Hessian matrix corresponding to the mode location; a covariance module for determining a covariance of the mode using the Hessian matrix; and a density approximation module for determining an update to the density function at the mode location using the Hessian matrix and the covariance.
 2. The system of claim 1 further comprising: a mode reduction module for reducing the modes located by the mean-shift vector module.
 3. The system of claim 1, wherein the density function is represented as a weighted sum of Gaussians, wherein the weighted sum of Gaussians having weights, means and covariances.
 4. The system of claim 3, wherein the mean-shift vector module iteratively determines at least one mode location for at least one mode in at least one density function based on the weights, means and covariances.
 5. The system of claim 4, wherein the iterative operation of the mean-shift vector module converges to a stationary point of density.
 6. The system of claim 5, wherein the stationary point of density is the mode.
 7. The system of claim 1, wherein the mode comprises: a Gaussian component corresponding to the mode location, wherein the Gaussian component having its mean equivalent to the mode location.
 8. The system of claim 7, wherein the covariance of the Gaussian corresponding to the mode is derived from the Hessian matrix.
 9. The system of claim 1, wherein the a mean-shift vector module determines at least one mode location for at least one mode using a variable-bandwidth mean shift vector represented by m(x), wherein ${m(x)} = {{{{H_{h}(x)}{\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}x_{i}}}} - x}\quad = {{\left( {\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}}} \right)^{- 1}\left( {\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}x_{i}}} \right)} - {x.}}}$
 10. The system of claim 1, wherein the Hessian is a Hessian matrix represented by {circumflex over (Q)}(x), wherein ${{\hat{Q}(x)} \equiv {\left( {\nabla\nabla^{T}} \right){\hat{f}(x)}}}\quad = {\frac{1}{n}\frac{1}{\left( {2\pi} \right)^{d/2}}{\sum\limits_{i = 1}^{n}\quad{\frac{1}{{H_{i}}^{1/2}}\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right){H_{i}^{- 1}\quad\left( {{\left( {x_{i} - x} \right)\left( {x_{i} - x} \right)^{T}} - H_{i}} \right)}{H_{i}^{- 1}.}}}}$
 11. The system of claim 1 wherein the covariance is represented as H(y), wherein ${H(y)} = {u_{y}^{\frac{2}{d + 2}}{{2{\pi\left( {- {{\hat{Q}}_{t}(y)}} \right)}^{- 1}}}^{- \frac{1}{d + 2}}{\left( {- {{\hat{Q}}_{t}(y)}^{- 1}} \right).}}$
 12. The system of claim 1, wherein the Hessian is a negative definite and the density approximation module updates the density function.
 13. The system of claim 1, wherein the Hessian is a convergence location for the mean shift vector module and is at least one of a saddle point and a local minimum, and the density approximation module retains data associated with the mode.
 14. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for sequential kernel density estimation, the method steps comprising: determining at least one mode location for at least one mode in at least one density function using a mean-shift vector; generating at least one Hessian corresponding to the mode location; determining a covariance of the mode using the Hessian matrix; and approximating density to determine an update to the density function at the mode location using the Hessian matrix and the covariance.
 15. The method of claim 14 further comprising: reducing the modes located by the mean-shift vector module.
 16. The system of claim 14 wherein the density function is represented as a weighted sum of Gaussians, wherein the weighted sum of Gaussians having weights, means and covariances.
 17. The system of claim 16 wherein the determining at least one mode location iteratively determines at least one mode location for at least one mode in at least one density function based on the weights, means and covariances.
 18. The system of claim 17 wherein the iterative operation of the step of determining at least one mode location converges to a stationary point of density.
 19. The system of claim 18 wherein the stationary point of density is the mode.
 20. The system of claim 14 wherein the mode comprises: a Gaussian component corresponding to the mode location, wherein the Gaussian component having its mean equivalent to the mode location.
 21. The system of claim 20 wherein the covariance of the Gaussian corresponding to the mode is derived from the Hessian matrix.
 22. The system of claim 14 wherein the a mean-shift vector module determines at least one mode location for at least one mode using a variable-bandwidth mean shift vector represented by m(x), wherein ${m(x)} = {{{{H_{h}(x)}{\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}x_{i}}}} - x}\quad = {{\left( {\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}}} \right)^{- 1}\left( {\sum\limits_{i = 1}^{n}\quad{{w_{i}(x)}H_{i}^{- 1}x_{i}}} \right)} - {x.}}}$
 23. The system of claim 14 wherein the Hessian is a Hessian matrix represented by {circumflex over (Q)}(x) wherein ${{\hat{Q}(x)} \equiv {\left( {\nabla\nabla^{T}} \right){\hat{f}(x)}}}\quad = {\frac{1}{n}\frac{1}{\left( {2\pi} \right)^{d/2}}{\sum\limits_{i = 1}^{n}\quad{\frac{1}{{H_{i}}^{1/2}}\exp\left( {{- \frac{1}{2}}{D^{2}\left( {x,x_{i},H_{i}} \right)}} \right){H_{i}^{- 1}\quad\left( {{\left( {x_{i} - x} \right)\left( {x_{i} - x} \right)^{T}} - H_{i}} \right)}{H_{i}^{- 1}.}}}}$
 24. The system of claim 14 wherein the covariance is represented as H(y), wherein ${H(y)} = {u_{y}^{\frac{2}{d + 2}}{{2{\pi\left( {- {{\hat{Q}}_{t}(y)}} \right)}^{- 1}}}^{- \frac{1}{d + 2}}{\left( {- {{\hat{Q}}_{t}(y)}^{- 1}} \right).}}$
 25. The system of claim 14 wherein the Hessian is a negative definite and the step of determining at least one mode location updates the density function at the mode location.
 26. The system of claim 25 wherein the step of determining at least one mode location updates the density mode function by associating a first Gaussian component with the mode at a first time step and associating a second Gaussian component with the mode at a second time step, wherein the mode being a location where the mean shift vector module has at least two convergences.
 27. The system of claim 14 wherein the Hessian is a convergence location for the step of determining at least one mode location and the convergence location at least one of a saddle point and a local minimum, and the density approximation module retains data associated with the mode.
 28. The system of claim 14 wherein the Hessian is the only convergence location for the mean shift vector module, and the step of density approximation retains data associated with the mode.
 29. A method for sequential kernel density estimation for first sub-space, the method comprising: determining a matrix of eigen vectors of the covariance of multi-dimensional data; selecting a first set of eigen values corresponding to a first set of eigen vectors; projecting data from the first sub-space on to a second sub-space; and performing mode finding in the second sub-space.
 31. The method of claim 29 wherein the step of performing further comprising: determining at least one mode location for at least one mode in at least one density function using a mean-shift vector; generating at least one Hessian corresponding to the mode location; determining a covariance of the mode using the Hessian matrix; and approximating density to determine an update to the density function at the mode location using the Hessian matrix and the covariance.
 31. The method of claim 29 wherein the second sub-space has lesser dimension than the first subspace.
 33. The method of claim 31 wherein the step of projecting using matrix multiplication to project the first sub-space on to a second sub-space.
 33. A method for background modeling for an image, the method comprising: approximating density for each pixel of the image to determine the background; creating a background model using the approximated density; receiving a frame of the image; subtracting background from the image; determining the validity of background classification; and updating the background using sequential kernel density approximation.
 34. The method of claim 33 where in the step of updating further comprising: determining at least one mode location for at least one mode in at least one density function of the approximated density using a mean-shift vector; generating at least one Hessian corresponding to the mode location; determining a covariance of the mode using the Hessian matrix; and approximating density to determine an update to the density function at the mode location using the Hessian matrix and the covariance. 